/**
 *  @file Competences.java
 *  @author Mamontov
 *
 *  This file contains Competences class definition
 */
package db21.entities;

import db21.racerpro.Queries;
import java.util.ArrayList;

/**
 * @class  Competences
 * @author Mamontov
 *
 *
 */
public class Competences extends Entities {
    public Competences() {
        m_conceptname = "Competence";
    }
    
    public ArrayList<String> listRelatedToSubject(String subject) {
        String escaped = Queries.escapeValue(m_conn.prefix(), subject);
        String query  = m_conn.buildQuery(Queries.listCompetencesOfSubjectInJena(), m_conn.prefix(), escaped);
        ArrayList<String> s = m_conn.evaluateSparQLInJena(query, Queries.competenceQueryName());
        return s;
    }
}
